﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/default.Master" AutoEventWireup="true"
    CodeBehind="Plan-Details.aspx.cs" Inherits="NRCP.Plan_Details" %>

<%@ Import Namespace="NRCP.Helpers" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="grid_19">
        <h2>
            NRCP <asp:Literal ID="litPlanYear" runat="server"></asp:Literal> National Plan</h2>
    </div>
    <div class="grid_19  dash-bar-2 dash-bar-3 block-gray">
        <div class="blocks border1 grid_6 block-parent alpha">
            <div class="dash-bar-1-value">
                <asp:Literal ID="litGrandTotal" runat="server"></asp:Literal></div>
            <div class="dash-bar-1-title">
                Total</div>
        </div>
        <asp:Repeater ID="repTotalBreakdown" runat="server">
            <ItemTemplate>
                <div class="blocks border1 grid_3">
                    <div class="dash-bar-1-value">
                        <%# Eval("Value") %></div>
                    <div class="dash-bar-1-title">
                        <%# Eval("Key") %></div>
                </div>
            </ItemTemplate>
        </asp:Repeater>
    </div>
    <br class="clear" />
    <br />
    <div class="grid_19 alpha">
        <asp:Repeater ID="repFishes" runat="server" OnItemDataBound="repFishes_ItemDataBound">
            <ItemTemplate>
            <div class="grid_4">
                <div class="grid_2 report-title-sub clarfix alpha">
                <%# Eval("Fish.Name")%>
                </div>               
               <br class="clear" />
                <table id="dataTable" class="mGrid">
                <tr>
                <th>Chemical Group</th>
                <th>Total</th>
                </tr>
                    <asp:Repeater ID="repBreakdownByGroups" runat="server">
                        <ItemTemplate>
                            <tr>
                                <td>
                                    <%# Eval("NationalPlanChemicalGroup.ChemicalGroup.Name")%>
                                </td>
                                <td>
                                    <%# Eval("Count")%>
                                </td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                </table>
                <br class="clear" />
                   <div class="grid_4 omega">
                <a href="<%= SiteSettings.BaseUrl %>monthly-plan-details.aspx?params=<%= SiteUtility.QueryParam %>&fishId=<%# Eval("Id") %>" class="button small green">Show Monthly Plan</a>
                </div>
                </div>
              
            </ItemTemplate>
        </asp:Repeater>
    </div>    
    <br class="clear" />
</asp:Content>
